/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.util.ArrayList;
import model.Data;

/**
 *
 * @author Javier
 */
public class Algorithms {

    // Método que determina si es posible hacer la predicción.
    // Se necesitan al menos 5 datos.
    public static boolean verifyData(ArrayList<Data> temps){
        if (temps.size()<=4){
            return false;
        }
        else{
            return true;
        }
        
    }
    
    // Simple Moving Average
    public static double sma(ArrayList<Data> temps){
        return 0.0;
    }

    // Double Moving Average(DMA)
    public static double dma (ArrayList<Data> temps){
        return 0.0;
    }
    
    // Exponential Smoothing (ES)
    public static double es (ArrayList<Data> temps){
        return 0.0;
    }
    
    //Double Exponential Smoothing (DES)
    public static double des (ArrayList<Data> temps){
        return 0.0;
    }
    
    //Holt Winters Multiplicative
    public static double hwm(ArrayList<Data> temps){
        return 0.0;
    }

    public static double error (ArrayList<Data> temps){
        return 0.0;
    }
    
}
